home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xmcd-1.4 / libdi.d / os_dec.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-10  |  2.0 KB  |  66 lines

  1. /*
  2.  *   libdi - CD Audio Player Device Interface Library
  3.  *
  4.  *   Copyright (C) 1995  Ti Kan
  5.  *   E-mail: ti@amb.org
  6.  *
  7.  *   This program is free software; you can redistribute it and/or modify
  8.  *   it under the terms of the GNU General Public License as published by
  9.  *   the Free Software Foundation; either version 2 of the License, or
  10.  *   (at your option) any later version.
  11.  *
  12.  *   This program is distributed in the hope that it will be useful,
  13.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  *   GNU General Public License for more details.
  16.  *
  17.  *   You should have received a copy of the GNU General Public License
  18.  *   along with this program; if not, write to the Free Software
  19.  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  *
  21.  *   This software module contains code that interfaces the CD player
  22.  *   application to the DEC Ultrix and DEC OSF/1 operating systems.
  23.  *   The term DEC, Ultrix and OSF/1 are used here for identification
  24.  *   purposes only.
  25.  */
  26. #ifndef __OS_DEC_H__
  27. #define __OS_DEC_H__
  28.  
  29. #if ((defined(__alpha) && defined(__osf__)) || \
  30.      defined(ultrix) || defined(__ultrix)) && \
  31.     defined(DI_SCSIPT) && !defined(DEMO_ONLY)
  32.  
  33. #ifndef LINT
  34. static char *_os_dec_h_ident_ = "@(#)os_dec.h    5.4 94/12/28";
  35. #endif
  36.  
  37. #ifdef __osf__
  38. #include <io/common/iotypes.h>
  39. #else /* must be ultrix */
  40. #include <sys/devio.h>
  41. #endif
  42. #include <io/cam/cam.h>
  43. #include <io/cam/uagt.h> 
  44. #include <io/cam/dec_cam.h>
  45. #include <io/cam/scsi_all.h>  
  46.  
  47.  
  48. #define OS_MODULE    /* Indicate that this is compiled on a supported OS */
  49. #define SETUID_ROOT    /* setuid root privilege is required */
  50.  
  51.  
  52. #define DEV_CAM        "/dev/cam"    /* CAM device path */
  53.  
  54.  
  55. /* Public function prototypes */
  56. extern bool_t    pthru_send(byte_t, word32_t, byte_t *, word32_t, byte_t,
  57.             word32_t, byte_t, byte_t, byte_t, bool_t);
  58. extern bool_t    pthru_open(char *);
  59. extern void    pthru_close(void);
  60. extern char    *pthru_vers(void);
  61.  
  62. #endif    /* __alpha __osf__ ultrix __ultrix DI_SCSIPT DEMO_ONLY */
  63.  
  64. #endif    /* __OS_DEC_H__ */
  65.  
  66.